package com.mes.cloud.dao;

import com.mes.cloud.api.dto.request.role.SysRoleEnablePageListRequest;
import com.mes.cloud.api.dto.request.role.SysRolePageListRequest;
import com.mes.cloud.entity.SysRole;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.ids.SelectByIdsMapper;

import java.util.List;

/**
 * 角色表
 *
 * @author wxm
 * @version 2019-08-01 15:33:26
 * @email xiaomin.wu1@pactera.com
 */
public interface SysRoleDao extends SelectByIdsMapper<SysRole>, Mapper<SysRole> {
    List<SysRole> list(SysRolePageListRequest sysRolePageListRequest);

    List<SysRole> enablePageList(SysRoleEnablePageListRequest sysRoleEnablePageListRequest);

    int batchEnableFlag(@Param("enableFlag") String enableFlag,
                        @Param("ids") List<String> ids,
                        @Param("updateDateStr") String updateDateStr,
                        @Param("employeeNo") String employeeNo,
                        @Param("employeeName") String employeeName);
}
